﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeEdu.MODEL
{
    [DisplayName("课程表")]
    public class Courses
    {
        //public Courses()f
        //{
        //    Student = new List<Student>();
        //}

        [DisplayName("ID")]
        public int CoursesId { get; set; }
        [DisplayName("课程名称")]
        public string CoursesName { get; set; }
        [DisplayName("课程序号")]
        public Nullable<int> CoursesCode { get; set; }

        [DisplayName("标题")]
        public string CTitle { get; set; }
        [DisplayName("副标题")]
        public string CSutTitle { get; set; }
        [DisplayName("标签外键")]
        public Nullable<int>  LableId { get; set; }
        public virtual Lable Lable { set; get; }
        [DisplayName("课程购买，0开启，1关闭")]

        public Nullable<int> CBuy { get; set; }
        [DisplayName("学院有效期，多少天")]

        public Nullable<int> CValidity { get; set; }
        [DisplayName("课程状态，0未发布，1已发布，2已关闭")]
        public Nullable<int> Cpublish { get; set; }
        [DisplayName("推荐，0未推荐，1推荐")]
        public Nullable<int> TJisornot { get; set; }

        [DisplayName("连载状态，0非连载，1更新，2完结")]
        public Nullable<int> CState { get; set; }

        [DisplayName("学院外键")]
        public Nullable<int> CollegeId { get; set; }
        public virtual College College { set; get; }

        [DisplayName("章节外键")]
        public Nullable<int> ZhangJieID { get; set; }
        public virtual ZhangJie ZhangJie { set; get; }

        [DisplayName("课程简介")]
        public string CAbout { get; set; }
        [DisplayName("课程目标")]
        public string CGoal { get; set; }
        [DisplayName("适应人群")]
        public string CCrowd { get; set; }
        [DisplayName("课程图片")]

        public string CImage { get; set; }
        [DisplayName("课程价格")]
        public Nullable<decimal> CPrice { set; get; }
        [DisplayName("用户外键")]
        public Nullable<int> UserInfoId { get; set; }
        public virtual UserInfo UserInfo { get; set; }

        //[DisplayName("学员")]

        //public List<Student> Student { set; get; }

        [DisplayName("添加时间")]
        public Nullable<DateTime> CreateTime { get; set; }
        [DisplayName("推荐时间")]
        public Nullable<DateTime> TJTime { get; set; }

        [DisplayName("创建人")]
        public string CreatePeople { get; set; }


    }
}
